﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Domep.Client.ApplianceServiceReference;

namespace Client.APIServer
{
    class APIServer
    {
        
        AppliancePresentationManagerClient APMClient;

        public APIServer()
        {

        }

        public Boolean ConnectUser(String User, String Password, String Adresse)
        {
            
            APMClient = new AppliancePresentationManagerClient("ws");
           
            //APMClient.Endpoint.Address = new System.ServiceModel.EndpointAddress("http://192.168.0.17:8732/Design_Time_Addresses/Server/Service1/mex");

            return true;

        }

        public AppliancePresentation[] getListAppliances()
        {

            return APMClient.GetAppliancesList();
            
        }

        public void getAppliance()
        {

        }

        public void getListFunctionnality()
        {

        }

        public void getFunctionnality()
        {

        }

    }
}
